﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Abp.Migration
{
    /// <summary>
    /// 提供外键关系
    /// </summary>
    public interface IForeignKeyProvider
    {
        /// <summary>
        /// 获取创建外键关系T-SQL
        /// </summary>
        /// <param name="schemaName">外键表构架名</param>
        /// <param name="tableName">外键表表名</param>
        /// <param name="columnName">外键表列名</param>
        /// <param name="refSchemaName">主键表构架名</param>
        /// <param name="refTableName">主键表表名</param>
        /// <param name="refColumnName">主键表列名(主键)</param>
        /// <returns></returns>
        string GetForeignKey(string schemaName,string tableName,string columnName,string refSchemaName,string refTableName,string refColumnName);
    }
}
